package com.cat.bitOperation;

/**
 * @author 曲大人的喵
 * @description https://leetcode.cn/problems/maximum-xor-after-operations/description/
 * @create 2025/8/21 09:23
 * @since JDK17
 */

public class Solution10 {
    public int maximumXOR(int[] nums) {
        int ans = 0;
        for (int num : nums) {
            ans |= num;
        }
        return ans;
    }
}
